package com.atguigu.spring.aop.proxy.dynamic;

import org.junit.Test;

/**
 * @author wk
 * @create 2021-06-03 16:27
 */
public class DynamicProxyTest {
    @Test
    public void test(){
        DynamicProxy dynamicProxy = new DynamicProxy(new CalculateImple());
        Calculate proxy = (Calculate) dynamicProxy.getProxy();
        System.out.println(proxy.div(2, 0));
    }
}
